<template>
  <div id="naviBar">
    <div class="header">
      <span v-if="backShow">
        <img src="../../static/img/back.png" class="imgBack" />
      </span>

      <span class="header_title">{{title}}</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "NavigationBar",
  data: function() {
    return {};
  },
  props: {
    title: {
      type: String,
      default: ""
    },
    bgColor: {
      type: String,
      default: ""
    },
    backShow: {
      type: Boolean,
      default: false
    }
  },
  methods: {}
};
</script>

<style type="text/css">
.naviBar {
  width: 100%;
  height: 60px;
}
.imgBack {
  width: 30px;
  height: 30px;
  position: absolute;
  left: 16px;
  visibility: visible;
}

.header {
  background-color: #444488;
  color: white;
  text-align: center;
  position: fixed;
  top: 0px;
  width: 100%;
  padding: 20px;
}

span.header_title {
  text-align: center;
}
</style>